RetroMission *** CD-ROM | disk | FTP | web | AOL | usenet | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / shell / conbuffer11.lha / .TOOLS / CB.doc (.txt)
Text File  |  1991-10-12  |  11KB  |  250 lines

  1.  
  2. Console Buffer provides a history and/or hardcopy (either file or
  3. device) of console I/O. CB can be used with either CLI or shell
  4. windows.  Console I/O is saved in a buffer, the size of which is set
  5. by the user.  When CB is activated a scroll gadget is attached to the
  6. right hand side of the console window.    Clicking on this gadget displays
  7. past console messages.
  8.  
  9. This is version 1.1, the latest version as of May 20, 1990.
  10.  
  11.  
  12.             Console Buffer by
  13.             William J. Fritz
  14.             4504 E. Yates Rd.
  15.             Bensalem, Pa. 19020
  16.             215-245-1584
  17.             GEnie electronic mail address W.FRITZ1
  18.  
  19. PROGRAM UPDATES:
  20.  
  21. Version 1.1
  22.  
  23.     4/07/90 Due to a problem finding the font size if the font was changed
  24.                 after the console was opened I now use the font in the window
  25.                 rastport rather than the window font itself to find the ysize.
  26.  
  27.     5/11/90 Console hang problem using CB with the Matt Dillon Shell reported
  28.                 to me by Alan P. McDonley. I added code to filter Device Status
  29.                 Reports out of the buffer when it is displayed. These reports
  30.                 are sent to the console by the shell for every console prompt.
  31.  
  32.     5/11/90 Increased the maximum number of lines on a display from 50 to
  33.                 99 for those of you running an interlaced PAL screen with an
  34.                 eight or nine point font.
  35.  
  36.     5/12/90 Exiting from buffer display mode is now accomplished by hitting
  37.                 any unused key rather than the <q> key. Thanks to John Baker of
  38.                 Falls Church, Va. for the idea.
  39.  
  40.  
  41. CONDITIONS FOR USE AND DISTRIBUTION:
  42.  
  43.    CB is Copyright (c) 1990 by William J. Fritz
  44.  
  45.    CB is a copyrighted program that is provided "as is". There is no
  46. warranty, either expressed or implied, as to the quality or usefullness
  47. of the program. The user of the program accepts all risks associated with
  48. it's use.
  49.  
  50.    CB is freely distributable provided:
  51.  
  52.    1. The files are all left intact.
  53.  
  54.    2. No charge is made for CB (other than a reasonable copy charge of $6.00
  55.       or less)
  56.  
  57.    3. CB is not packaged as a part of a commercial product.
  58.  
  59.    4. CB may not be uploaded to any electronic service that claims
  60.       a copyright to it's files and programs.
  61.  
  62. DESCRIPTION:
  63.  
  64.    Console Buffer is for CLI users who would like to have a history
  65. and/or hardcopy (either file or device) of their console input and output.
  66. It works with both CLI and shell windows. Console I/O is saved in a
  67. buffer, the size of which is set by the user. The default buffer size is
  68. 100 lines.
  69.  
  70.    When the program is started a  proportional gadget is attached to the
  71. console window that can be used to scroll through the console I/O just as
  72. you would use a word processor vertical scroll gadget.
  73.  
  74.    The Console Buffer program consists of two modules.
  75.  
  76.    CB -          CB loads CB-handler if it is not loaded and
  77.              interprets the command line arguments. If CB-handler
  78.              is present the current status is reported.
  79.  
  80.    CB-handler -      CB-handler monitors the console that CB was started
  81.              from, builds the buffer in memory and displays the
  82.              buffer data. This module must be placed in either the
  83.              current directory or the L: directory of the system
  84.              disk in order for CB to find it.
  85.  
  86. CLI Argument Help:
  87.  
  88.    For command line argument help type <CB ?>.
  89.  
  90. START:
  91.  
  92.    To start CB type <CB> at the console you wish to monitor--this will
  93. use the default of 100 lines. Do not "run" the program. (e.g. "run CB"). If
  94. you wish another number of lines saved open with <CB -l###>, ### being the
  95. number of lines to save. For a hard-copy of the Console I/O start with
  96. <CB -hname>, the name being either a file name or device name. (e.g.<CB -hPRT:>
  97. to have the printer as the hardcopy device)
  98.    The -o, -q and -r options to output buffer, quit and reset cannot be used
  99. at Console Buffer startup as they pertain to a currently active buffer only.
  100.  
  101. DISPLAY:
  102.  
  103.    To display the buffer click on the proportional gadget in the right
  104. border of the console window. The title line of the console window will
  105. be changed to indicate display mode is active.
  106.  
  107.    While in display mode use either the prop gadget or the up and down
  108. arrow keys to view the buffer.
  109.  
  110.    up-arrow           scroll down one line
  111.    down-arrow           scroll up one line
  112.    shift-up-arrow       scroll down one window frame
  113.    shift-down-arrow       scroll up one window frame
  114.    control-up-arrow       scroll to top of buffer
  115.    control-down-arrow       scroll to bottom of buffer
  116.  
  117.    Single line scrolling is also possible by clicking and holding the mouse
  118. within the display window. The area that the mouse pointer occupies determines
  119. the speed and direction of scrolling. The window is divided into five horizontal
  120. zones of equal size. The center zone does no scrolling. The next zone out from
  121. the center gives a slow scroll. If the pointer above the center zone you will
  122. scroll down, if below you will scroll up. The top and bottom zones are for
  123. fast scrolling.
  124.  
  125.    Scrolling up or down by a window frame will be inaccurate if any lines
  126. within the displayed window frame contain more characters than can fit on
  127. a single  window line. When the cursor reaches the right edge of the window
  128. an automatic line feed is performed and the buffer line continues on the
  129. following window line. The problem is that this is still considered the
  130. same line to the program. Each time an automatic line feed is done the window
  131. frame scroll will go one line too far and the top line in the window frame
  132. will be scrolled off the display. If your buffer contains lines longer than
  133. the console window use the single line scroll instead of the window frame
  134. scroll.
  135.  
  136.    If another program sends something to the console window while in display
  137. mode it will be suspended until you return from display mode.
  138.  
  139.    To quit display mode and return to the normal console window enter any
  140. key other than the up and down arrow keys. The window's original title will
  141. re-appear.
  142.  
  143. COMMAND LINE OPTIONS:
  144.  
  145.    The command lines listed below facilitate:
  146.       1. Setting the maximum number of lines to keep in memory.
  147.       2. Specifying a hardcopy device or file for a permanent record of
  148.      console IO.
  149.       3. Setting the update frequency for the hardcopy device or file.
  150.       4. Including time stamps on console prompts in the buffer data.
  151.       5. Reseting the buffer - releasing the current data from memory.
  152.       6. Sending the currently buffered data to a device or file.
  153.       7. Exiting the Console Buffer program.
  154.  
  155.    The first time CB is called a buffer is started and whatever command
  156. line options are specified are activated. After the buffer is started you
  157. may alter any of these options by calling CB again with whatever changes
  158. you desire on the command line. Only the options on the command line will
  159. be changed.
  160.  
  161.    For example: if you are using a hardcopy and wish to delete it enter
  162. <CB -h>, the lack of a name after the <h> switch will cause no hardcopy to
  163. be used. Any remaining lines in the buffer that have not been copied to the
  164. hardcopy will be flushed.
  165.  
  166.    SET MAX LINES:  <CB -l200>
  167.  
  168.       The -l option sets the maximum number of lines to keep in memory. If the
  169.    number of lines is set after the program has been running and is lower than
  170.    that being currently buffered by the program, excess lines in the buffer
  171.    will be discarded.
  172.  
  173.       The above example would set the maximum number of lines that the buffer
  174.    will hold at 200. At the 201st line the first line that went into the buffer
  175.    would be discarded and the 201st line entered at the end.
  176.  
  177.       If you are using the hardcopy option the maximum number of lines that the
  178.    buffer will hold must be set higher than the hardcopy update value. If you
  179.    try to set it lower an error message will appear and the -l option will not
  180.    be done.
  181.  
  182.    HARDCOPY:   <CB -hPRT: -u25>
  183.  
  184.       The -h option (hardcopy) allows you to make a permanent record of the
  185.    console I/O. The buffer data can be directed to any AmigaDOS device or file.
  186.  
  187.       The format of the command line is <CB -hname> where name if the name of
  188.    the file or device that you wish to receive the hardcopy data. Note that
  189.    there must be no intervening spaces between the <h> and the <name>.
  190.  
  191.       The above example would send the hardcopy data to the printer, writing
  192.    to the printer only after 25 lines have been accumulated, then sending
  193.    all 25 lines.
  194.  
  195.       Care should be used with this option as using the printer for hardcopy
  196.    will significantly slow down the console I/O, specifying a floppy disk file
  197.    will require that disk be installed all the time the buffer is running.
  198.    Having a hardcopy does not preclude the use of the buffer.
  199.  
  200.       The -u option (update) specifies the frequency of hardcopy access. For
  201.    safety the hardcopy is opened and closed each time data is sent to it.
  202.    Doing this can perceptibly slow down the console. Using the update command
  203.    line option you can set the update value for writing to the hardcopy device
  204.    or file. This value specifies the number of lines to accumulate in the
  205.    buffer before sending them to the hardcopy. The update value, which
  206.    defaults to 10 lines, must be less than the maximum number of lines to
  207.    buffer.
  208.  
  209.    TIME STAMP:
  210.  
  211.       The -t option will mark all prompt lines in the buffer with the time that
  212.    the command is entered. The time is in military format. This time stamp will
  213.    only be in the buffer, not on the CLI display.
  214.  
  215.    RESET BUFFER:
  216.  
  217.       The -r option (reset buffer) releases all the lines currently being held
  218.    in memory. Using the -r option does not change the maximum number of lines
  219.    that the buffer can hold. This option is only valid on a running Console
  220.    Buffer, it can not be specified at start-up.
  221.  
  222.    OUTPUT BUFFER:
  223.  
  224.       The -o option (output buffer) dumps all of the lines currently being held
  225.    in memory to the specified file or device. The format is <CB -oname> where
  226.    name if the file or device you wish to receive the data. Note that there
  227.    must be no intervening spaces between the <o> and the <name>.
  228.       This option only pertains to a running Console Buffer and cannot be
  229.    specified on program start-up.
  230.  
  231.    QUIT:
  232.  
  233.       To quit and recover memory used by the buffer, type <CB -q>. If this
  234.    hangs do to an error in the conbuf-handler module you can exit with a
  235.    Control-C. Ending the CLI that the buffer is attached to will automatically
  236.    end that Console Buffer, recovering all memory used.
  237.  
  238. MEMORY REQUIREMENTS:
  239.  
  240.    After the program is started the storage used is approximately 9 K, plus
  241. the lines buffered. Each line buffered uses the size of the line plus eight
  242. bytes. Running the program with a 100 line buffer will use about 14K of
  243. storage. Using a 500 line buffer will require about 28K.
  244.  
  245. COMMENTS:
  246.  
  247.    Any comments, constructive criticism or useful additions to the program
  248. may be directed to me at the above address or on GEnie electronic mail at
  249. address W.FRITZ1
  250.